#include "ReadFifo.h"

ReadFifo::ReadFifo(const std::string name) : Fifo(name) {
}

ReadFifo::~ReadFifo() {
}

void ReadFifo::open_() {
	fd = open ( name.c_str(),O_RDONLY );
	if ( fd < 0 ){
		throw Exception(std::string("Error al abrir fifo lectura: ") + name);
	}
}

ssize_t ReadFifo::read_(void* buffer,const ssize_t buffsize) const {
	return read ( fd,buffer,buffsize );
}
